{% load gravatar %}
{% load moderator %}
<tr id="posts-{{ post.id }}-row" class="post hentry">
  <td class="author vcard">
    <div class="date">
      <a rel="bookmark" href="#posts-{{ post.id }}">
      <abbr title="{{ post.created|date:"M d, Y I:mA" }}" class="updated">{{ post.created|timesince }} ago</abbr>
      </a>
    </div>
      <img width="32" height="32" src="{{ post.user.email|gravatar }}" class="photo" alt="Avatar"/>
    <span class="fn">{{ post.user }}</span>
    {% if post.user.is_staff %}
        <span class="posts">Administrator</span>
    {% else %}
        {% if post.user.moderator_set.all %}
            <span class="posts">Moderator</span>
        {% endif %}
    {% endif %}
    <span class="posts">{{ post.user.post_set.count }} posts</span>
  </td>
  
  <td id="post-body-{{ post.id }}" class="body entry-content">
      {{ post.body|safe }}
  </td>
  </tr>